#-*- coding: utf8 -*-
from tutor.scripts import *
from tutor.plugins.sympy import *

while True:
    with display_block('Entradas'):
        d = One * oneof(2, 3, 6, sqrt(3), 2 * sqrt(3), 3 * sqrt(3))
        mod = d

    with display_block('Resultados'):
        correta = d ** 2 / 2
        dis_1 = d ** 2
        dis_2 = (d ** 2 / sqrt(2)).expand()
        dis_3 = d
        dis_4 = d / 2

        if len(set([correta, dis_1, dis_2, dis_3, dis_4])) != 5:
            print ('restarting...')
            print ('-' * 80)
            continue
        else:
            break
